package com.sumer.brain.sys.mapper;

import com.sumer.brain.sys.model.entity.SysRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

public interface SysRoleMapper extends BaseMapper<SysRole> {

    List<SysRole> getRolesByUserId(Long userId);

    int saveRoleMenu(SysRole sysRole);

    int delRoleMenuByRoleIds(List<String> roleIds);


    void deleteRoleMenu(SysRole sysRole);
}




